<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // var [a,b,c] = [1,2,3];
    // console.log(a,b,c);
    // var [f1,f2,f3,f4]=[false,true,true,false];
    // console.log(f1,f2,f3,f4);

    var x = {
        loc: {
            w: {
                len: 2,
                wh: 1
            }
        }
    };
    // { loc, loc: { start }, loc: { start: { line }} }
    // var { loc, loc: { w }, loc: { w: { len } } } = x;
    // var { loc,loc: { w,w: { len } } } = x;
    var { loc: { w, w: { len, wh } } } = x;
    console.log(len, wh, w);

    // var z = {
    //     name: "z",
    //     age: 12,
    //     sex:"nan",
    // }
    // // var {name,age,sex}=z;
    // // console.log(name,age,sex);
    // var {name:a,age:b,sex:c}=z;
    // console.log(a,b,c);


    {
        "list"=[
            {
                "city_id": "A001",
                "city_name": "北京",
                "list1":[
                    {
                        "city_id": "A00101",
                        "city_name": "朝阳"
                    },
                    {
                        "city_id": "A00102",
                        "city_name": "海淀"
                    },
                    {
                        "city_id": "A00103",
                        "city_name": "上地"
                    },
                    {
                        "city_id": "A00104",
                        "city_name": "沙河"
                    }
                ]
            }
        ]
    }
</script>

</html>